/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Practica7.Practica;

import Practica6.util.Edge;
import Practica6.util.Vertex;

/**
 *
 * @author miguel
 */
public class MyEdge<E> extends Edge<E>{
    
    private int color;
    private boolean visited;
    
    public MyEdge(Vertex<E> s, Vertex<E> t, int w, int idx, int color) {
       super(s,t,w,idx);
       this.color = color;
       visited = false;
    }
    
    public MyEdge(Vertex<E> s, Vertex<E> t, int color) {
        super(s, t);
        this.color = color;
        visited = false;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public boolean isVisited() {
        return visited;
    }

    public void setVisited(boolean visited) {
        this.visited = visited;
    }
    
    
    
}
